package com.wsb.wetchat.dao;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author wang shaobo
 * @date 2022/6/30  15:46
 */
public class Product implements Serializable {

    private int id;
    private String productName;
    private String city;
    private BigDecimal price;
    private int stock;
    private int version;

    public Product(int id, String productName, String city, BigDecimal price, int stock, int version) {
        this.id = id;
        this.productName = productName;
        this.city = city;
        this.price = price;
        this.stock = stock;
        this.version = version;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
}
